package com.asen.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName GetController
 * @Deacription TODO
 * @Author chenxin
 * @Date 2021/3/9 15:03
 **/
@RestController
@RequestMapping("/test")
@ResponseBody
@Api(tags = "测试Api")
public class GetController {


    @ApiOperation("测试")
    @ApiImplicitParam(name = "name",value = "姓名",readOnly = true)
    @RequestMapping("/get")
    public String get(String name) {
        return name;
    }
}
